// 好货排行榜 
var data = [];
for (var i = 0; i < $(".inner .inner-item").length; i++) {
    var d = data[i] = {};
    d.rankImg = $(".rank-container .rank-content .inner .inner-item .rank-img[data-v-49e4861a]").eq(i).attr('src')
    d.rankImg2 = $(".rank-container .rank-content .inner .inner-item img[data-v-49e4861a]").eq(i).attr('src')
    d.text = $(".rank-container .rank-content .inner .inner-item .text[data-v-49e4861a]").eq(i).text()
}
var str = '';
for (var i = 0; i < $(".inner .inner-item").length; i++) {
    str += `insert into rank(rankImg,rankImg2,text) values ('${data[i].rankImg}','${data[i].rankImg2}','${data[i].text}');`

}
console.log(str)

// brand-container
var data = [];
for (var i = 0; i < $(".brand-container .inner .item").length; i++) {
    var d = data[i] = {};
    d.Img = $(".brand-container .inner .item img[data-v-3f9d1588]").eq(i).attr('src')
    d.text = $(".brand-container .inner .item").eq(i).text()
}
var str = '';
for (var i = 0; i < $(".brand-container .inner .item").length; i++) {
    str += `insert into brand_container(img,text) values ('${data[i].Img}','${data[i].text}');`

}
console.log(str)

// 猜你喜欢
var data = [];
for (var i = 0; i < $(".product-list li").length; i++) {
    var d = data[i] = {};
    d.img = $(".lazy-box .square-lazy").eq(i).attr('src')
    d.text = $(".product-list .similar[data-v-706f54a2]").eq(i).text()
    d.desc = $(".product-list .desc[data-v-706f54a2]").eq(i).text()
    d.pric = $(".product-list .price[data-v-706f54a2]").eq(i).html()
}
var str = '';
for (var i = 0; i < $(".product-list li").length; i++) {
    str += `insert into product_list(img,tet,des,pri) values ('${data[i].img}','${data[i].text}','${data[i].desc}','${data[i].pric}');`
}
console.log(str)


var data = [];
for (var i = 0; i < $(".goodsList li").length; i++) {
    var d = data[i] = {};
    d.img = $(".guessGoodsList .goodsList li img").eq(i).attr('src')
    d.des = $(".guessGoodsList .goodsList li div:nth-of-type(2)").eq(i).text()
    d.pri = $(".guessGoodsList .goodsList li .name.money span").eq(i).text()
}
var str ='';
for (var i = 0; i < $(".goodsList li").length; i++) {
    str += `insert into person_list (img,des,pri) values ('${data[i].img}','${data[i].des}','${data[i].pri}');`
}
console.log(str)